package kirk.ocean.pp.model;

import java.util.Collection;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Flag {
	public static final int OUT_OF_DATE = 1;
	public static final int INAPPROPRIATE = 2;
	public static final int SUPERCEDED = 3;
	
	@Id
	private Long id;
	private Integer type = 1;
	private PPUser author;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdOn;
	private String description;
	private Collection<Content> relatedContent;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public PPUser getAuthor() {
		return author;
	}
	public void setAuthor(PPUser author) {
		this.author = author;
	}
	public Date getCreatedOn() {
		return createdOn;
	}
	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Collection<Content> getRelatedContent() {
		return relatedContent;
	}
	public void setRelatedContent(Collection<Content> relatedContent) {
		this.relatedContent = relatedContent;
	}
	
}
